home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / BKISSSRC.ZIP / MISC.!!! / JLIBIO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-28  |  1.1 KB  |  43 lines

  1. #ifndef _JLIBIO_H_
  2. #define _JLIBIO_H_
  3.  
  4. #define SEEK_START 0
  5. #define SEEK_CUR   1
  6. #define SEEK_END   2
  7.  
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. /*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*/
  12.  
  13. /* select the active library */
  14. int jlib_open_library (char far *file);
  15.  
  16. /* disable the use of the current library */
  17. int jlib_close_library (void);
  18.  
  19. /* 'open' a file contained in the current library */
  20. int jlib_open_file (char far *file);
  21.  
  22. /* 'close' a file contained in the current library */
  23. int jlib_close_file (int handle);
  24.  
  25. /* return the current location within a specific 'file' */
  26. long jlib_ftell (int handle);
  27.  
  28. /* return the total length of a specific 'file' */
  29. long jlib_filelength (int handle);
  30.  
  31. /* move the read pointer to a specific location */
  32. long jlib_fseek (int handle, long position, char method_code);
  33.  
  34. /* read a buffer of data from a 'file' */
  35. int jlib_read_file (int handle, char far *buffer, int count);
  36.  
  37. /*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*/
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41.  
  42. #endif
  43.